Drawing.getAverageColor Method

Gets a color that represents the average of all colors defined as part of the brush.
 
 
Static This method is static.

Parameters

brush

Type: Brush - May be null

Return Value


Type: Color - May be null
A color, or null if brush is null.